#include "StdAfx.h"
#include "RuleGoldFork.h"
#include "Datamanager.h"

CRuleGoldFork::CRuleGoldFork(void)
{
}


CRuleGoldFork::~CRuleGoldFork(void)
{
}

bool CRuleGoldFork::BuySign(PER_DATA* pData)
{
	if (!pData->preData){
		return false;
	}

	if (pData->AvData[EAV_5] == NULL || pData->preData->AvData[EAV_10] == NULL){
		return false;
	}
	bool bRet = (pData->AvData[EAV_5]  -pData->preData->AvData[EAV_10]> 0.0000001);

	return bRet;
}

bool CRuleGoldFork::SellSign(PER_DATA* pData)
{
	if (!pData->preData){
		return false;
	}
	if (pData->AvData[EAV_5] == NULL || pData->preData->AvData[EAV_10] == NULL){
		return false;
	}
	bool bRet = (pData->AvData[EAV_10]  -pData->preData->AvData[EAV_5]> 0.0000001);

	return bRet;
}